<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>优惠券</title>
<link rel="stylesheet" href="statics/css/manage.css" type="text/css"></link>
<script src="statics/js/jquery-1.12.4.js" charset="utf-8"></script>
<script src="statics/layer/layer.js"></script>
<style type="text/css">
.discountXG {
	font-size: 13px
}
.discountXG div input{
	width:200px;
}
.discountXG div .b1{
	width: 80px;
	height: 30px;
}
.discountXG div .b2{
	width: 80px;
	height: 30px;
	margin-left: 120px;
}
.lei{
	margin-left:205px;
	float: left;
}
.logo{
    margin-right: 325px;
	float: right;
}
.logo .lo{
	width: 140px;
    height: 120px;
    margin-top: 20px;
}
</style>
<script type="text/javascript">
$(function () {
	$('.discountXG').on('click','.b1',function(){
		window.location.href="houtaidiscount";
	});
	$('.discountXG').on('click','.b2',function(){
		$.post("houdiscountxg",{
			did:$(this).attr('data-did'),
			dname:$('.discountXG .dname').val(),
			dtime:$('.discountXG .dtime').val(),
			dnum:$('.discountXG .dnum').val(),
			ddiscount:$('.discountXG .ddiscount').val()
		},function(data){
			layer.msg(data);
			window.location.href="houtaidiscount";
		})
	})
})
</script>
</head>
<body>
<div class="discountXG" >
	<div class="lei">
		<div><span>优惠券名称:</span>
			<input type="text" class="dname" value="${dname }">
		</div>
		<div><span>有效期(天):</span>
			<input type="text" class="dtime" value="${dtime }">
		</div>
		<div><span>&nbsp;数&nbsp;量&nbsp;:</span>
			<input type="text" class="dnum" value="${dnum }">
		</div>
		<div><span>&nbsp;折扣数&nbsp;:</span>
			<input type="text" class="ddiscount" value="${ddiscount }">
		</div>
		
		<div>
			<button class="b1">取消修改</button>
			<button class="b2" data-did="${did }">保存修改</button>
		</div>
	</div>
	<div class="logo">
		<span>LOGO</span>
		<a class="file">上传文件</a>
		<br>
		<img class="lo" alt="" src="statics/image/upload/huodong/${dpicture}">
	</div>
</div>
</body>
</html>